home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
editor
/
frxdv111.lha
/
FrexxEd
/
bin
/
FrexxTool.doc
< prev
next >
Wrap
Text File
|
1995-07-17
|
3KB
|
94 lines
FrexxTool - An ARexx toolbox
============================
By Linus Nielsen and Daniel Stenberg
This is a small utility that opens a window with buttons that execute
ARexx commands when pressed. It reads a setup file with the button names
and the commands they execute. It can open on any public screen and use
any ARexx port.
How to use it
-------------
The CLI template is:
FrexxTool PORT/K,SETUP/K,SCREEN/K,COLUMNS/N/K,X/N/K,Y/N/K,HELP/S/K
The parameters:
PORT - The name of the ARexx port to use, default is FREXXED.1,
because this program is written mainly for FrexxEd usage.
SETUP - The name of the setup file, default is "FrexxTool.setup".
SCREEN - The name of the public screen to open on, default is
the current default public screen. If PORT is FrexxEd's
port, it will ask FrexxEd which screen to use, if SCREEN is
not specified.
COLUMNS - The number of columns to use when placing the gadgets,
default is 3.
X - The window X position, default is 0.
Y - The window Y position, default is 0.
HELP - Display a helpful(?) text.
The setup file
--------------
The setup file, by default called 'FrexxTool.setup' has a very simple
format: '<label>:<command>' where the command ends at the newline character.
The label should for cosmetic reasons be short and immediately followed by a
colon, and then the message that will be sent to FrexxEd when that button
is pressed. One line should *not* be longer than 512 bytes, and there is no
use putting in more than 256 gadgets...
EXAMPLE FILE
------------
Just in case the original gets changed, I'll insert an example file in this
document. This is of course to be used with FrexxEd:
Open:Open("");
Save:Save();
Save As...:SaveAs();
Search...:{ int ret; SearchSet("f+"); if ((ret=SearchSet())>=0) { if (Search()<0) DisplayBeep(); } else ReturnStatus(GetReturnMsg(ret)); }
Search:Search();
Srch/Repl:ReplaceSet();
Mark:BlockMark();
Copy:BlockCopy();
Cut:BlockCut();
Paste:BlockPaste();
Bsave:BlockSave();
FPL file:ExecuteFile();
Globals:PromptInfo(0, "All globals", "(global)", "(read)(hidden)");
Locals:PromptInfo(-1, joinstr("\"", ReadInfo("file_name"), "\" settings."), 0, 0, "!ds_*");
Undo:Undo();
Undo restart:UndoRestart();
About:About();
History
-------
0.1 First version by Daniel Stenberg
0.2 Improved very much by Linus Nielsen
0.3 Made the gadgets resize the widths according to the longest gadget
text.
Redirect complaints to >NIL:, mail us serious bug reports and suggestions
of how to improve this.
Linus Nielsen
Email: erenie@ere.ericsson.se
Daniel Stenberg
Email: Daniel.Stenberg@sth.frontec.se